//
//  TestTableViewCell.m
//  shike
//
//  Created by RegentSoft on 2017/4/25.
//  Copyright © 2017年 RegentSoft. All rights reserved.
//

#import "TestTableViewCell.h"

@implementation TestTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reuseIdentifier]) {
        [self creatView];
    }
    return self;
}
-(void)creatView{
    _headLabel =[[UILabel alloc] initWithFrame:CGRectMake(20, 0, DeviceWidth-40, 80)];
    _headLabel.textColor = [UIColor colorWithHexString:@"#323232"];
    _headLabel.font = [UIFont systemFontOfSize:16.0];
    _headLabel.numberOfLines = 0;
    _headLabel.textAlignment = NSTextAlignmentLeft;
    [self addSubview:_headLabel];

    _titleLabel =[[UILabel alloc] initWithFrame:CGRectMake(20, 10, 11, 20)];
    _titleLabel.textColor = [UIColor colorWithHexString:@"#323232"];
    _titleLabel.font = [UIFont systemFontOfSize:16.0];
    _titleLabel.textAlignment = NSTextAlignmentLeft;
    [self addSubview:_titleLabel];
    _contentLabel =[[UILabel alloc] initWithFrame:CGRectMake(40, 10, 240, 20)];
    _contentLabel.textColor = [UIColor colorWithHexString:@"#323232"];
    _contentLabel.font = [UIFont systemFontOfSize:16.0];
    _contentLabel.textAlignment = NSTextAlignmentLeft;
    [self addSubview:_contentLabel];
    
    _selectBtn =[[UIButton alloc] initWithFrame:CGRectMake(DeviceWidth-40, 10,20, 20)];
    _selectBtn.backgroundColor = [UIColor whiteColor];
    _selectBtn.layer.cornerRadius = 10.0;
    [self addSubview:_selectBtn];
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
